
using System;
using Serpis;

namespace PVenta
{

	[Label("Clientes")]
	public class ClienteListView : EntityListView
	{
		private string selectSql = "select c.Id as Id, c.Nombre as Nombre, c.Nif as Nif from Cliente c";
		
		public ClienteListView () : base(typeof(Cliente), typeof(ClienteView))
		{
			label.LabelProp= "Nombre del cliente";
			entry.Text= selectSql;
			
			init();
		}
		
		protected override string getSql() {
			return string.Format(selectSql, entry.Text);
		}
	}
}